﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace ShopB2C.Business.Models.Classify {
    [Serializable]
    public class EClassify {
        /// <summary>
        /// 分类 ID，主键，自增 ID
        /// </summary>
        public Int32 ClassifyId { get; set; }
        /// <summary>
        /// 名称/标题
        /// </summary>
        [Required, StringLength(50, MinimumLength = 1)]
        public String Title { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        [MaxLength(500)]
        public String Keywords { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [MaxLength(500)]
        public String Description { get; set; }
        /// <summary>
        /// 父 ID
        /// </summary>
        [Required]
        public Int32 ParentClassifyId { get; set; }
        /// <summary>
        /// 分类的完整父子路径
        /// </summary>
        [MaxLength(1000)]
        public String Path { get; set; }
        /// <summary>
        /// 子数
        /// </summary>
        public Int32 Childs { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public Int32 Sequence { get; set; }
        /// <summary>
        /// 分类的层级
        /// </summary>
        public Int32 Floor { get; set; }
        /// <summary>
        /// 模块类型
        /// </summary>
        [StringLength(10, MinimumLength = 1)]
        public String ModuleKey { get; set; }
        /// <summary>
        /// 属性集
        /// </summary>
        public virtual List<EClassifyProperty> ClassifyProperties { get; set; }
    }
}
